\section{Tools.MultipartForm类参考}
\label{class_tools_1_1_multipart_form}\index{Tools::MultipartForm@{Tools::MultipartForm}}


对文件和文本数据进行Multipart形式的编码  


\subsection*{公有成员}
\begin{DoxyCompactItemize}
\item 
{\bf MultipartForm} ()
\begin{DoxyCompactList}\small\item\em 实例化 \item\end{DoxyCompactList}\item 
void {\bf AddFlie} (string name, string filename)
\begin{DoxyCompactList}\small\item\em 添加一个文件 \item\end{DoxyCompactList}\item 
void {\bf AddFlie} (string name, string filename, byte[$\,$] fileData, int dataLength)
\begin{DoxyCompactList}\small\item\em 添加一个文件 \item\end{DoxyCompactList}\item 
void {\bf AddString} (string name, string value)
\begin{DoxyCompactList}\small\item\em 添加字符串 \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{属性}
\begin{DoxyCompactItemize}
\item 
byte[$\,$] {\bf FormData}\hspace{0.3cm}{\ttfamily  [get]}
\begin{DoxyCompactList}\small\item\em 获取编码后的字节数组 \item\end{DoxyCompactList}\item 
string {\bf ContentType}\hspace{0.3cm}{\ttfamily  [get]}
\begin{DoxyCompactList}\small\item\em 获取此编码内容的类型 \item\end{DoxyCompactList}\item 
Encoding {\bf StringEncoding}\hspace{0.3cm}{\ttfamily  [get, set]}
\begin{DoxyCompactList}\small\item\em 获取或设置对字符串采用的编码类型 \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{详细描述}
对文件和文本数据进行Multipart形式的编码 

\subsection{构造及析构函数文档}
\index{Tools::MultipartForm@{Tools::MultipartForm}!MultipartForm@{MultipartForm}}
\index{MultipartForm@{MultipartForm}!Tools::MultipartForm@{Tools::MultipartForm}}
\subsubsection[{MultipartForm}]{\setlength{\rightskip}{0pt plus 5cm}Tools.MultipartForm.MultipartForm (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{class_tools_1_1_multipart_form_a892b12bf3ddb52e811f6755cd39708ed}


实例化 



\subsection{成员函数文档}
\index{Tools::MultipartForm@{Tools::MultipartForm}!AddFlie@{AddFlie}}
\index{AddFlie@{AddFlie}!Tools::MultipartForm@{Tools::MultipartForm}}
\subsubsection[{AddFlie}]{\setlength{\rightskip}{0pt plus 5cm}void Tools.MultipartForm.AddFlie (
\begin{DoxyParamCaption}
\item[{string}]{ name, }
\item[{string}]{ filename}
\end{DoxyParamCaption}
)}\label{class_tools_1_1_multipart_form_a149d3cd7e46854b9423b5b27ed263d61}


添加一个文件 


\begin{DoxyParams}{参数}
{\em name} & 文件域名称\\
\hline
{\em filename} & 文件的完整路径\\
\hline
\end{DoxyParams}
\index{Tools::MultipartForm@{Tools::MultipartForm}!AddFlie@{AddFlie}}
\index{AddFlie@{AddFlie}!Tools::MultipartForm@{Tools::MultipartForm}}
\subsubsection[{AddFlie}]{\setlength{\rightskip}{0pt plus 5cm}void Tools.MultipartForm.AddFlie (
\begin{DoxyParamCaption}
\item[{string}]{ name, }
\item[{string}]{ filename, }
\item[{byte[$\,$]}]{ fileData, }
\item[{int}]{ dataLength}
\end{DoxyParamCaption}
)}\label{class_tools_1_1_multipart_form_a356b77d98e461167a8afcc5942e19440}


添加一个文件 


\begin{DoxyParams}{参数}
{\em name} & 文件域名称\\
\hline
{\em filename} & 文件名\\
\hline
{\em fileData} & 文件二进制数据\\
\hline
{\em dataLength} & 二进制数据大小\\
\hline
\end{DoxyParams}
\index{Tools::MultipartForm@{Tools::MultipartForm}!AddString@{AddString}}
\index{AddString@{AddString}!Tools::MultipartForm@{Tools::MultipartForm}}
\subsubsection[{AddString}]{\setlength{\rightskip}{0pt plus 5cm}void Tools.MultipartForm.AddString (
\begin{DoxyParamCaption}
\item[{string}]{ name, }
\item[{string}]{ value}
\end{DoxyParamCaption}
)}\label{class_tools_1_1_multipart_form_a34345babba2e6352aa3dc1999410fb56}


添加字符串 


\begin{DoxyParams}{参数}
{\em name} & 文本域名称\\
\hline
{\em value} & 文本值\\
\hline
\end{DoxyParams}


\subsection{属性文档}
\index{Tools::MultipartForm@{Tools::MultipartForm}!ContentType@{ContentType}}
\index{ContentType@{ContentType}!Tools::MultipartForm@{Tools::MultipartForm}}
\subsubsection[{ContentType}]{\setlength{\rightskip}{0pt plus 5cm}string Tools.MultipartForm.ContentType\hspace{0.3cm}{\ttfamily  [get]}}\label{class_tools_1_1_multipart_form_a407b1e384f893b9daa8075b6d3348864}


获取此编码内容的类型 

\index{Tools::MultipartForm@{Tools::MultipartForm}!FormData@{FormData}}
\index{FormData@{FormData}!Tools::MultipartForm@{Tools::MultipartForm}}
\subsubsection[{FormData}]{\setlength{\rightskip}{0pt plus 5cm}byte [$\,$] Tools.MultipartForm.FormData\hspace{0.3cm}{\ttfamily  [get]}}\label{class_tools_1_1_multipart_form_ab3b82ee1aff6b06cd1a42265624153c2}


获取编码后的字节数组 

\index{Tools::MultipartForm@{Tools::MultipartForm}!StringEncoding@{StringEncoding}}
\index{StringEncoding@{StringEncoding}!Tools::MultipartForm@{Tools::MultipartForm}}
\subsubsection[{StringEncoding}]{\setlength{\rightskip}{0pt plus 5cm}Encoding Tools.MultipartForm.StringEncoding\hspace{0.3cm}{\ttfamily  [get, set]}}\label{class_tools_1_1_multipart_form_aa75bfe657700960f04c4f223fd8ad3d8}


获取或设置对字符串采用的编码类型 



该类的文档由以下文件生成：\begin{DoxyCompactItemize}
\item 
D:/Project/1101/Tools/UploadAndDownHelper.cs\end{DoxyCompactItemize}
